package team.se.tms.po;


import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import team.se.tms.annotation.Regex;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务信息类
 *
 * @author winkyle
 * @date 2018/11/25
 */
@Data
public class TaskInfo implements Serializable{
    @Regex("^[a-zA-Z0-9]{16}$")
    private String taskId;
    @Regex("^[a-zA-Z0-9\\u4e00-\\u9fa5]{1,20}$")
    private String taskName;
    private Date taskStartTime;
    private Date taskEndTime;
    @Regex("^[a-zA-Z0-9\\u4e00-\\u9fa5]{1,100}$")
    private String taskDescription;
    /**
     * taskType 0为单人任务 1为团队任务
     */
    private Integer taskType;
    @Regex("^[a-zA-Z0-9]{16}$")
    private String teachCourseId;
}
